#ifndef __ES_ADC_H
#define __ES_ADC_H


#ifdef __cplusplus
 extern "C" {
#endif

#include "stm32f10x_adc.h"


void adc_init(ADC_TypeDef * ADCx, uint8_t ADC_Channel);
uint16_t get_adc(uint8_t adc_ch);
short get_temperate(void);

#ifdef __cplusplus
}
#endif

#endif /* __ES_ADC_H */
